package com.robam.apollotest.apollotest;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = {"com.robam"}) //扫描所有组件java类配置
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.robam"}) //扫描feignClient类配置
@EnableApolloConfig
@SpringBootApplication
@Slf4j
public class ApollotestApplication {


    public static void main(String[] args) {
        //new ClientUrlConfig().init();
        SpringApplication.run(ApollotestApplication.class, args);
    }

}
